/*
 * @Author: jlzm
 * @Date: 2020-03-05 16:53:23
 * @LastEditors: jlzm
 * @LastEditTime: 2020-06-18 10:44:08
 * @FilePath: \MPShop\hub\api\customerServer\address.js
 */
import {
    request
} from "./index";

// 地址模块
const apiModule = 'customerAddressApp/';

// 删除
export const deleteAddress = (data) => {
    return request(apiModule + 'delete', data);
}

// 获取默认
export const queryDefaultAddress = (data) => {
    return request(apiModule + 'queryDefault', data);
}

// 获取详情
export const queryAddressDetail = (data) => {
    return request(apiModule + 'queryDetails', data);
}

// 获取列表
export const queryAddressList = (data) => {
    return request(apiModule + 'queryList', data);
}

// 新增/修改
export const updateAddress = (data) => {
    return request(apiModule + 'save', data);
}